function message_alert(title,message,func){
    bootbox.alert({
        title: title,
        message: message,
        callback: func
    });
}

function message_confirm(title,message,func){
    bootbox.confirm({
        title: title,
        message: message,
        buttons: {
            cancel: {
                className: 'btn-sm',
                label: '<i class="glyphicon glyphicon-remove"></i> 取消'
            },
            confirm: {
                className: 'btn-sm btn-success',
                label: '<i class="glyphicon glyphicon-ok"></i> 确定'
            }
        },
        callback: func
    });
}